The TError class came as a result of the need to provide a standard way to report to the user that an error had occurred. No matter how well a program is written, there is always a chance that something unexpected and beyond program control will happen. The TError class of objects are able to check to see if errors during the allocation of handles and pointers occurred. It is also used to
report a specific
error condition.
If there was an
-- part contents for card part 1
----- text -----
wObj := TWindow(GetWRefCon(theWindow));
case windowCode of
inZoomIn, inZoomOut:
if TrackBox(theWindow, eRecord.where, windowCode) then